﻿using B.S.Requst;
using MediatR;

namespace B.S.Data.MES.API.Applications.WorkOrderManagement.Commands
{
    public class UpdateWorkOrderCommand:IRequest<APIRequst<int>>
    {
        public int WorkId { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public string WorkCode { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        public int CustomerId { get; set; }
        /// <summary>
        /// 产品主数据
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 工艺路线
        /// </summary>
        public int ProcessroutId { get; set; }
        /// <summary>
        /// 产线
        /// </summary>
        public int ProductionlineId { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int WorkNum { get; set; }
        /// <summary>
        /// 是否允许跳工序
        /// </summary>
        public bool IsSkipprocess { get; set; } = false;
        /// <summary>
        /// 来源
        /// </summary>
        public int Scoure { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int States { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 外键
        /// </summary>
        public int DingDanId { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
